package com.imooc.girl.controller;

import com.imooc.girl.domain.GetStuInfoForm;
import com.imooc.girl.domain.ReturnResult;
import com.imooc.girl.service.StuInfoService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class StuController {
    @Autowired
    private StuInfoService stuInfoService;
    @PostMapping(value="getStudentInfo")
    public ReturnResult getStuInfo(GetStuInfoForm getStuInfoForm)throws Exception{
            return stuInfoService.getStuInfoServe(getStuInfoForm);
    }
}
